package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生作业减免权益兑换记录对象 sys_student_benefit_exchange
 *
 * @author 杨佳霖
 * @date 2025-08-29
 */
public class AsysStudentBenefitExchange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兑换记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 权益ID */
    @Excel(name = "权益ID")
    private Long benefitId;

    /** 权益名称 */
    @Excel(name = "权益名称")
    private String benefitName;

    /** 消耗经验值 */
    @Excel(name = "消耗经验值")
    private Long costExp;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeTime;

    /** 兑换状态 */
    @Excel(name = "兑换状态")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setBenefitId(Long benefitId)
    {
        this.benefitId = benefitId;
    }

    public Long getBenefitId()
    {
        return benefitId;
    }

    public void setBenefitName(String benefitName)
    {
        this.benefitName = benefitName;
    }

    public String getBenefitName()
    {
        return benefitName;
    }

    public void setCostExp(Long costExp)
    {
        this.costExp = costExp;
    }

    public Long getCostExp()
    {
        return costExp;
    }

    public void setExchangeTime(Date exchangeTime)
    {
        this.exchangeTime = exchangeTime;
    }

    public Date getExchangeTime()
    {
        return exchangeTime;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("benefitId", getBenefitId())
                .append("benefitName", getBenefitName())
                .append("costExp", getCostExp())
                .append("exchangeTime", getExchangeTime())
                .append("status", getStatus())
                .toString();
    }
}
